 /* This file is part of Stimer. Stimer - Simple reminder tool.
    Copyright (C) 2012  Klimov Max <cleemmi@gmail.com>

    Stimer is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    */
#ifndef REMINDERVIEW_H
#define REMINDERVIEW_H

#include <QWidget>
#include <QTime>
#include <QFrame>
#include <QPushButton>
#include <QSlider>
#include <QLabel>
#include <QDialog>

class ReminderView : public QDialog
{
    Q_OBJECT
public:
    explicit ReminderView(QWidget *parent = 0);
    
signals:
    void timeChanged(const QTime&);
public slots:
    void setMinutes(int value);
    void setSeconds(int value);
    void setTime(const QTime &time);
    void pressSet();
    void pressReturn();
    void showOnCursor();

private:
    QMenu           *menu;
    QFrame          *frame;
    QLabel          *lminutes;
    QLabel          *lseconds;
    QPushButton     *bset;
    QPushButton     *breturn;
    QSlider         *minutes;
    QSlider         *seconds;
    QTime           time;

    void init(QWidget *parent = 0, Qt::Orientation orientation = Qt::Vertical);
};

#endif // REMINDERVIEW_H
